<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<script>

    var obj = {}


    obj["name1"]={size:123,process:0};

    obj["name2"]={size:312,process: 5}

    console.info("obj: "+ JSON.stringify(obj));

    Object.keys(obj).forEach(function(key){
        console.log(key,JSON.stringify(obj[key]));
    });






</script>
</body>
</html>